import request from "@/utils/request";
import api from "@/utils/api";

// 获取验证码
export const checkCodeQuery=()=>{
    return request({
        method:'post',
        url:api.userinfos.registerCode,
        responseType: 'blob'
    })
}

// 验证码验证
export const checkCodeCheck=(params)=>{
    return request({
        method:'post',
        url:api.userinfos.checkCode,
        params
    })
}

// 用户登录
export const loginQuery=(params)=>{
    return request({
        method:'post',
        url:api.userinfos.login,
        params
    })
}

// 用户注册
export const registerQuery=(data)=>{
    return request({
        method:'post',
        url:api.userinfos.register,
        data
    })
}